<p>
<?php 
	$template = array(
						'table_open'	=> '<table id="table_application_list" class="table">',
						'table_close' 	=> '</table>'
				);

	$this->table->set_template($template);
	
	$list = array();
	
	foreach($units_by_group as $key => $value) {
		if (isset($value['units'])) {
			$list[$key] = "<h3>".$value['description']." diri </h3>";
			$list[$key] .= "<ul>";
			
			$_list = array();
			foreach ($value['units'] as $subkey => $subvalue) {
				$_list[$subvalue['nkey']] = $subvalue['description'];
			}
			
			asort($_list);
			
			foreach ($_list as $subkey => $subvalue) {
				$list[$key] .= "<li>".$this->common->anchor(strtolower($subkey), $subvalue)."</li>";
			}			
			
			$list[$key] .= "</ul>";
		}
	}
		$new_list = $this->table->make_columns($list, 2);
		echo $this->table->generate($new_list);



?>
</p>